<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>坦克大战</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="game-container">
        <div class="game-header">
            <h1>坦克大战</h1>
            <div class="game-info">
                <div class="score">得分: <span id="score">0</span></div>
                <div class="lives">生命值: <span id="lives">3</span></div>
                <div class="level">关卡: <span id="level">1</span></div>
            </div>
        </div>
        
        <div class="game-area">
            <canvas id="gameCanvas"></canvas>
        </div>
        
        <div class="game-controls">
            <div class="control-panel">
                <button id="startBtn" class="btn-primary">开始游戏</button>
                <button id="pauseBtn" class="btn-secondary">暂停</button>
                <button id="restartBtn" class="btn-secondary">重新开始</button>
            </div>
            
            <div class="mobile-controls">
                <div class="joystick-area">
                    <div id="joystick" class="joystick">
                        <div class="joystick-inner"></div>
                    </div>
                </div>
                <div class="fire-area">
                    <button id="fireBtn" class="fire-button">开火</button>
                </div>
            </div>
        </div>
        
        <div id="gameOver" class="modal">
            <div class="modal-content">
                <h2>游戏结束</h2>
                <p>你的得分: <span id="finalScore">0</span></p>
                <p>达到关卡: <span id="finalLevel">1</span></p>
                <button id="playAgainBtn" class="btn-primary">再玩一次</button>
            </div>
        </div>
        
        <div id="levelComplete" class="modal">
            <div class="modal-content">
                <h2>关卡完成!</h2>
                <p>准备进入下一关</p>
                <button id="nextLevelBtn" class="btn-primary">下一关</button>
            </div>
        </div>
    </div>
    
    <script src="script.js"></script>
</body>
</html>